#ifndef MAPWIDGET_H
#define MAPWIDGET_H

#include <QGraphicsScene>
#include <QGraphicsPixmapItem>
#include <QPaintEvent>
#include <map>
#include "Position.h"

class MainWindow;

class MapWidget : public QGraphicsScene {
    Q_OBJECT
public:
    MapWidget(MainWindow * parent = 0,int w=2,int h=2);
    void tracerMap();
    void selectElementAt(Position * _p);
    void initCaseAt(Position *);
    QGraphicsPixmapItem * getPixmapAt(Position *);

private:
    int width;
    int height;
    int largeurCase;
    MainWindow * mw;
    Position * caseSelected;
};

#endif // MAPWIDGET_H
